import request from "@/utils/request";

// 获取试题等级管理列表
export function getList(data) {
  return request({
    url: "/api/exam/difficultyGrade/getList",
    method: "post",
    data,
  });
}
// 获取试题等级管理
export function getInfo(id) {
  return request({
    url: `/api/exam/difficultyGrade/${id}`,
    method: "get",
  });
}
// 获取试题等级管理详情
export function getDetail(id) {
  return request({
    url: `/api/exam/difficultyGrade/detail/${id}`,
    method: "get",
  });
}
// 删除试题等级管理
export function Delete(id) {
  return request({
    url: `/api/exam/difficultyGrade/${id}`,
    method: "DELETE",
  });
}
// 修改试题等级管理
export function Update(data) {
  return request({
    url: `/api/exam/difficultyGrade/${data.id}`,
    method: "PUT",
    data,
  });
}
// 新建试题等级管理
export function Create(data) {
  return request({
    url: "/api/exam/difficultyGrade",
    method: "post",
    data,
  });
}

// 试题等级管理 下拉选择项
export function getSelector(data) {
  return request({
    url: "/api/exam/difficultyGrade/Selector",
    method: "GET",
    data,
  });
}
